Add parser tests for animation properties
authorMatthias Clasen <mclasen@redhat.com>
Wed, 23 Dec 2015 02:33:08 +0000 (21:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 23 Dec 2015 03:29:38 +0000 (22:29 -0500)
This adds tests for animation-name, animation-duration,
animation-timing-function, animation-iteration-count,
animation-direction, animation-play-state, animation-delay
and animation-fill-mode.

17 files changed:
testsuite/css/parser/Makefile.am
testsuite/css/parser/animation-delay.css [new file with mode: 0644]
testsuite/css/parser/animation-delay.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-direction.css [new file with mode: 0644]
testsuite/css/parser/animation-direction.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-duration.css [new file with mode: 0644]
testsuite/css/parser/animation-duration.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-fill-mode.css [new file with mode: 0644]
testsuite/css/parser/animation-fill-mode.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-iteration-count.css [new file with mode: 0644]
testsuite/css/parser/animation-iteration-count.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-name.css [new file with mode: 0644]
testsuite/css/parser/animation-name.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-play-state.css [new file with mode: 0644]
testsuite/css/parser/animation-play-state.ref.css [new file with mode: 0644]
testsuite/css/parser/animation-timing-function.css [new file with mode: 0644]
testsuite/css/parser/animation-timing-function.ref.css [new file with mode: 0644]

index ac4302050984a7f9f943cc7977a862dad3b7daa2..1160b44c9d8a0eb9c1db8d2978f38d13fde0c233 100644 (file)
@@ -35,6 +35,22 @@ test_data = \
        animation-crash-3.12.ref.css \
        animation-shorthand-crash.css \
        animation-shorthand-crash.ref.css \
+        animation-delay.css \
+        animation-delay.ref.css \
+        animation-direction.css \
+        animation-direction.ref.css \
+        animation-duration.css \
+        animation-duration.ref.css \
+        animation-fill-mode.css \
+        animation-fill-mode.ref.css \
+        animation-iteration-count.css \
+        animation-iteration-count.ref.css \
+        animation-name.css \
+        animation-name.ref.css \
+        animation-play-state.css \
+        animation-play-state.ref.css \
+        animation-timing-function.css \
+        animation-timing-function.ref.css \
        at-invalid-01.css \
        at-invalid-01.errors \
        at-invalid-01.ref.css \
diff --git a/testsuite/css/parser/animation-delay.css b/testsuite/css/parser/animation-delay.css
new file mode 100644 (file)
index 0000000..495abc6
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-delay: initial;
+}
+
+b {
+  animation-delay: inherit;
+}
+
+c {
+  animation-delay: unset;
+}
+
+d {
+  animation-delay: 0s;
+}
+
+e {
+  animation-delay: 5ms;
+}
+
+f {
+  animation-delay: 5ms, 6s;
+}
diff --git a/testsuite/css/parser/animation-delay.ref.css b/testsuite/css/parser/animation-delay.ref.css
new file mode 100644 (file)
index 0000000..c7b23ef
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-delay: initial;
+}
+
+b {
+  animation-delay: inherit;
+}
+
+c {
+  animation-delay: unset;
+}
+
+d {
+  animation-delay: 0;
+}
+
+e {
+  animation-delay: 5ms;
+}
+
+f {
+  animation-delay: 5ms, 6s;
+}
diff --git a/testsuite/css/parser/animation-direction.css b/testsuite/css/parser/animation-direction.css
new file mode 100644 (file)
index 0000000..0d86740
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-direction: initial;
+}
+
+b {
+  animation-direction: inherit;
+}
+
+c {
+  animation-direction: unset;
+}
+
+d {
+  animation-direction: normal;
+}
+
+e {
+  animation-direction: normal, reverse, alternate, alternate-reverse;
+}
diff --git a/testsuite/css/parser/animation-direction.ref.css b/testsuite/css/parser/animation-direction.ref.css
new file mode 100644 (file)
index 0000000..0d86740
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-direction: initial;
+}
+
+b {
+  animation-direction: inherit;
+}
+
+c {
+  animation-direction: unset;
+}
+
+d {
+  animation-direction: normal;
+}
+
+e {
+  animation-direction: normal, reverse, alternate, alternate-reverse;
+}
diff --git a/testsuite/css/parser/animation-duration.css b/testsuite/css/parser/animation-duration.css
new file mode 100644 (file)
index 0000000..c4a0b7a
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-duration: initial;
+}
+
+b {
+  animation-duration: inherit;
+}
+
+c {
+  animation-duration: unset;
+}
+
+d {
+  animation-duration: 0s;
+}
+
+e {
+  animation-duration: 5ms;
+}
+
+f {
+  animation-duration: 5ms, 6s;
+}
diff --git a/testsuite/css/parser/animation-duration.ref.css b/testsuite/css/parser/animation-duration.ref.css
new file mode 100644 (file)
index 0000000..416ea2f
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-duration: initial;
+}
+
+b {
+  animation-duration: inherit;
+}
+
+c {
+  animation-duration: unset;
+}
+
+d {
+  animation-duration: 0;
+}
+
+e {
+  animation-duration: 5ms;
+}
+
+f {
+  animation-duration: 5ms, 6s;
+}
diff --git a/testsuite/css/parser/animation-fill-mode.css b/testsuite/css/parser/animation-fill-mode.css
new file mode 100644 (file)
index 0000000..db62025
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-fill-mode: initial;
+}
+
+b {
+  animation-fill-mode: inherit;
+}
+
+c {
+  animation-fill-mode: unset;
+}
+
+d {
+  animation-fill-mode: none;
+}
+
+e {
+  animation-fill-mode: none, forwards, backwards, both;
+}
diff --git a/testsuite/css/parser/animation-fill-mode.ref.css b/testsuite/css/parser/animation-fill-mode.ref.css
new file mode 100644 (file)
index 0000000..db62025
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-fill-mode: initial;
+}
+
+b {
+  animation-fill-mode: inherit;
+}
+
+c {
+  animation-fill-mode: unset;
+}
+
+d {
+  animation-fill-mode: none;
+}
+
+e {
+  animation-fill-mode: none, forwards, backwards, both;
+}
diff --git a/testsuite/css/parser/animation-iteration-count.css b/testsuite/css/parser/animation-iteration-count.css
new file mode 100644 (file)
index 0000000..474cbc6
--- /dev/null
@@ -0,0 +1,27 @@
+a {
+  animation-iteration-count: initial;
+}
+
+b {
+  animation-iteration-count: inherit;
+}
+
+c {
+  animation-iteration-count: unset;
+}
+
+d {
+  animation-iteration-count: 1;
+}
+
+e {
+  animation-iteration-count: 1, 2, 3;
+}
+
+f {
+  animation-iteration-count: infinite;
+}
+
+g {
+  animation-iteration-count: 1, infinite, 2;
+}
diff --git a/testsuite/css/parser/animation-iteration-count.ref.css b/testsuite/css/parser/animation-iteration-count.ref.css
new file mode 100644 (file)
index 0000000..474cbc6
--- /dev/null
@@ -0,0 +1,27 @@
+a {
+  animation-iteration-count: initial;
+}
+
+b {
+  animation-iteration-count: inherit;
+}
+
+c {
+  animation-iteration-count: unset;
+}
+
+d {
+  animation-iteration-count: 1;
+}
+
+e {
+  animation-iteration-count: 1, 2, 3;
+}
+
+f {
+  animation-iteration-count: infinite;
+}
+
+g {
+  animation-iteration-count: 1, infinite, 2;
+}
diff --git a/testsuite/css/parser/animation-name.css b/testsuite/css/parser/animation-name.css
new file mode 100644 (file)
index 0000000..5825836
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-name: initial;
+}
+
+b {
+  animation-name: inherit;
+}
+
+c {
+  animation-name: unset;
+}
+
+d {
+  animation-name: none;
+}
+
+e {
+  animation-name: bob;
+}
+
+f {
+  animation-name: bob, alice;
+}
diff --git a/testsuite/css/parser/animation-name.ref.css b/testsuite/css/parser/animation-name.ref.css
new file mode 100644 (file)
index 0000000..5825836
--- /dev/null
@@ -0,0 +1,23 @@
+a {
+  animation-name: initial;
+}
+
+b {
+  animation-name: inherit;
+}
+
+c {
+  animation-name: unset;
+}
+
+d {
+  animation-name: none;
+}
+
+e {
+  animation-name: bob;
+}
+
+f {
+  animation-name: bob, alice;
+}
diff --git a/testsuite/css/parser/animation-play-state.css b/testsuite/css/parser/animation-play-state.css
new file mode 100644 (file)
index 0000000..4d4b456
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-play-state: initial;
+}
+
+b {
+  animation-play-state: inherit;
+}
+
+c {
+  animation-play-state: unset;
+}
+
+d {
+  animation-play-state: running;
+}
+
+e {
+  animation-play-state: running, paused, running, paused;
+}
diff --git a/testsuite/css/parser/animation-play-state.ref.css b/testsuite/css/parser/animation-play-state.ref.css
new file mode 100644 (file)
index 0000000..4d4b456
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+  animation-play-state: initial;
+}
+
+b {
+  animation-play-state: inherit;
+}
+
+c {
+  animation-play-state: unset;
+}
+
+d {
+  animation-play-state: running;
+}
+
+e {
+  animation-play-state: running, paused, running, paused;
+}
diff --git a/testsuite/css/parser/animation-timing-function.css b/testsuite/css/parser/animation-timing-function.css
new file mode 100644 (file)
index 0000000..5022e5d
--- /dev/null
@@ -0,0 +1,35 @@
+a {
+  animation-timing-function: initial;
+}
+
+b {
+  animation-timing-function: inherit;
+}
+
+c {
+  animation-timing-function: unset;
+}
+
+d {
+  animation-timing-function: ease;
+}
+
+e {
+  animation-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end;
+}
+
+f {
+  animation-timing-function: cubic-bezier(0,0.25,1,2.7);
+}
+
+g {
+  animation-timing-function: steps(3);
+}
+
+h {
+  animation-timing-function: steps(5,start);
+}
+
+i {
+  animation-timing-function: steps(7,end);
+}
diff --git a/testsuite/css/parser/animation-timing-function.ref.css b/testsuite/css/parser/animation-timing-function.ref.css
new file mode 100644 (file)
index 0000000..c1f1201
--- /dev/null
@@ -0,0 +1,35 @@
+a {
+  animation-timing-function: initial;
+}
+
+b {
+  animation-timing-function: inherit;
+}
+
+c {
+  animation-timing-function: unset;
+}
+
+d {
+  animation-timing-function: ease;
+}
+
+e {
+  animation-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end;
+}
+
+f {
+  animation-timing-function: cubic-bezier(0,0.25,1,2.7);
+}
+
+g {
+  animation-timing-function: steps(3);
+}
+
+h {
+  animation-timing-function: steps(5,start);
+}
+
+i {
+  animation-timing-function: steps(7);
+}